package com.cxso.example.request.sign;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Schema(description = "查询用户证书详情二")
public class SignGetCertInfoRequest {


    @Schema(description = "用户信息")
    @NotNull(message = "用户信息不能为空")
    @Valid
    private Info info;

    @Getter
    @Setter
    @Schema(description = "申请CA证书-用户信息-入参")
    public static class Info {
        @Schema(description = "用户类型", example = "类型 1：个人 、2：企业")
        @NotBlank(message = "用户类型不能为空")
        private String type;

        @Schema(description = "证件类型", example = "证件类型 0：身份证 1：军官证 ,2：护照、3：驾驶证、4：工商登记证、5：税务登记证、6：组织机构代码、7：其他证件，8：统一社会信用代码")
        @NotBlank(message = "证件类型不能为空")
        private String cardType;

        @Schema(description = "证件号码")
        @NotBlank(message = "证件号码不能为空")
        private String idCardNum;

        @Schema(description = "企业或者个人联系手机号")
        @NotBlank(message = "企业或者个人联系手机号不能为空")
        private String mobilePhone;
    }
}
